<?php
namespace BP\Frm;
require_once("BP/En/Map.php");
require_once("BP/Web/WebUser.php");
class FrmDict extends EntityNoName {
	public function getHisUAC () 
	{
		$uac = new UAC();
		if ($WebUser->getNo()->equals("admin"))
		{
			$uac->IsDelete =  FALSE ;
			$uac->IsUpdate =  TRUE ;
			return $uac;
		}
		$uac->Readonly();
		return $uac;
	}
	public function getPTable () 
	{
		$s = $this->GetValStrByKey($MapDataAttr->PTable);
		if (($DataType->IsNullOrEmpty($s) ==  TRUE ))
		{
			return $this->getNo();
		}
		return $s;
	}
	public function setPTable ($value) // [String value]
	{
		$this->SetValByKey($MapDataAttr->PTable, $value);
	}
	public function getEntityType () 
	{
		return EntityType->forValue($this->GetValIntByKey(FrmDictAttr::$EntityType));
	}
	public function setEntityType ($value) // [EntityType value]
	{
		$this->SetValByKey(FrmDictAttr::$EntityType, $value->getValue());
	}
	public function getFrmType () 
	{
		return $FrmType->forValue($this->GetValIntByKey($MapDataAttr->FrmType));
	}
	public function setFrmType ($value) // [FrmType value]
	{
		$this->SetValByKey($MapDataAttr->FrmType, $value->getValue());
	}
	public function getFK_FormTree () 
	{
		return $this->GetValStrByKey($MapDataAttr->FK_FormTree);
	}
	public function setFK_FormTree ($value) // [String value]
	{
		$this->SetValByKey($MapDataAttr->FK_FormTree, $value);
	}
	public function getBtnNewModel () 
	{
		return $this->GetValIntByKey(FrmDictAttr::$BtnNewModel);
	}
	public function setBtnNewModel ($value) // [int value]
	{
		$this->SetValByKey(FrmDictAttr::$BtnNewModel, $value);
	}
	public function getBillNoFormat () 
	{
		$str = $this->GetValStrByKey(FrmDictAttr::$BillNoFormat);
		if (($DataType->IsNullOrEmpty($str) ==  TRUE ))
		{
			$str = "{LSH4}";
		}
		return $str;
	}
	public function setBillNoFormat ($value) // [String value]
	{
		$this->SetValByKey(FrmDictAttr::$BillNoFormat, $value);
	}
	public function getTitleRole () 
	{
		$str = $this->GetValStrByKey(FrmDictAttr::$TitleRole);
		if (($DataType->IsNullOrEmpty($str) ==  TRUE ))
		{
			$str = "@WebUser.getFK_DeptName @WebUser.getName() @RDT";
		}
		return $str;
	}
	public function setTitleRole ($value) // [String value]
	{
		$this->SetValByKey(FrmDictAttr::$BillNoFormat, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($no) // [String no]
	{
		$me = new self();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Sys_MapData", "实体表单");
		$map->Java_SetEnType($EnType->Sys);
		$map->Java_SetCodeStruct("4");
		$map->AddTBStringPK($MapDataAttr->No, NULL, "表单编号",  TRUE ,  TRUE , 1, 190, 20);
		$map->SetHelperAlert($MapDataAttr->No, "也叫表单ID,系统唯一.");
		$map->AddDDLSysEnum($MapDataAttr->FrmType, 0, "表单类型",  TRUE ,  TRUE , "BillFrmType", "@0=傻瓜表单@1=自由表单");
		$map->AddTBString($MapDataAttr->PTable, NULL, "存储�?",  TRUE ,  FALSE , 0, 500, 20,  TRUE );
		$map->SetHelperAlert($MapDataAttr->PTable, "存储的表�?,如果您修改一个不存在的系统将会自动创建一个表.");
		$map->AddTBString($MapDataAttr->Name, NULL, "表单名称",  TRUE ,  FALSE , 0, 200, 20,  TRUE );
		$map->AddDDLEntities($MapDataAttr->FK_FormTree, "01", "表单类别", new SysFormTrees(),  FALSE );
		$map->AddDDLSysEnum(FrmAttr::$RowOpenModel, 0, "行记录打�?模式",  TRUE ,  TRUE , "RowOpenMode", "@0=新窗口打�?@1=在本窗口打开@2=弹出窗口打开,关闭后不刷新列表@3=弹出窗口打开,关闭后刷新列�?");
		$map->AddTBInt(FrmAttr::$PopHeight, 500, "弹窗高度",  TRUE ,  FALSE );
		$map->AddTBInt(FrmAttr::$PopWidth, 760, "弹窗宽度",  TRUE ,  FALSE );
		$map->AddDDLSysEnum($MapDataAttr->TableCol, 0, "表单显示列数",  TRUE ,  TRUE , "傻瓜表单显示方式", "@0=4列@1=6列@2=上下模式3�?");
		$map->AddDDLSysEnum(FrmAttr::$EntityEditModel, 0, "编辑模式",  TRUE ,  TRUE , FrmAttr::$EntityEditModel, "@0=表格@1=行编�?");
		$map->SetHelperAlert(FrmAttr::$EntityEditModel, "用什么方式打�?实体列表进行编辑0=只读查询模式SearchDict.htm,1=行编辑模式SearchEditer.htm");
		$map->AddDDLSysEnum(FrmDictAttr::$EntityType, 0, "业务类型",  TRUE ,  FALSE , FrmDictAttr::$EntityType, "@0=独立表单@1=单据@2=编号名称实体@3=树结构实�?");
		$map->SetHelperAlert(FrmDictAttr::$EntityType, "该实体的类型,@0=单据@1=编号名称实体@2=树结构实�?.");
		$map->AddTBString(FrmDictAttr::$BillNoFormat, NULL, "实体编号规则",  TRUE ,  FALSE , 0, 100, 20,  TRUE );
		$map->SetHelperAlert(FrmDictAttr::$BillNoFormat, "\t\n实体编号规则: \t\n 2标识:01,02,03�?, 3标识:001,002,003,�?..");
		$map->AddTBString(FrmDictAttr::$BtnNewLable, "新建", "新建",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddDDLSysEnum(FrmDictAttr::$BtnNewModel, 0, "新建模式",  TRUE ,  TRUE , FrmDictAttr::$BtnNewModel, "@0=表格模式@1=卡片模式@2=不可�?");
		$map->AddTBString(FrmDictAttr::$BtnSaveLable, "保存", "保存",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(FrmDictAttr::$BtnSaveEnable,  TRUE , "是否可用�?",  TRUE ,  TRUE );
		$map->AddTBString(FrmDictAttr::$BtnSaveAndCloseLable, "保存并关�?", "保存并关�?",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(FrmDictAttr::$BtnSaveAndCloseEnable,  TRUE , "是否可用�?",  TRUE ,  TRUE );
		$map->AddTBString(FrmDictAttr::$BtnDelLable, "删除", "删除",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(FrmDictAttr::$BtnDelEnable,  TRUE , "是否可用�?",  TRUE ,  TRUE );
		$map->AddTBString(FrmDictAttr::$BtnSearchLabel, "列表", "列表",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(FrmDictAttr::$BtnSearchEnable,  TRUE , "是否可用�?",  TRUE ,  TRUE );
		$map->AddTBString(FrmDictAttr::$BtnGroupLabel, "分析", "分析",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(FrmDictAttr::$BtnGroupEnable,  FALSE , "是否可用�?",  TRUE ,  TRUE );
		$map->AddTBString(FrmDictAttr::$BtnPrintHtml, "打印Html", "打印Html",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(FrmDictAttr::$BtnPrintHtmlEnable,  FALSE , "是否可用�?",  TRUE ,  TRUE );
		$map->AddTBString(FrmDictAttr::$BtnPrintPDF, "打印PDF", "打印PDF",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(FrmDictAttr::$BtnPrintPDFEnable,  FALSE , "是否可用�?",  TRUE ,  TRUE );
		$map->AddTBString(FrmDictAttr::$BtnPrintRTF, "打印RTF", "打印RTF",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(FrmDictAttr::$BtnPrintRTFEnable,  FALSE , "是否可用�?",  TRUE ,  TRUE );
		$map->AddTBString(FrmDictAttr::$BtnPrintCCWord, "打印CCWord", "打印CCWord",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(FrmDictAttr::$BtnPrintCCWordEnable,  FALSE , "是否可用�?",  TRUE ,  TRUE );
		$map->AddTBString(FrmDictAttr::$BtnExpZip, "导出zip文件", "导出zip文件",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(FrmDictAttr::$BtnExpZipEnable,  FALSE , "是否可用�?",  TRUE ,  TRUE );
		$map->AddTBString(FrmDictAttr::$BtnImpExcel, "导入Excel文件", "导入Excel文件",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(FrmDictAttr::$BtnImpExcelEnable,  TRUE , "是否可用�?",  TRUE ,  TRUE );
		$map->AddTBString(FrmDictAttr::$BtnExpExcel, "导出Excel文件", "导出Excel文件",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(FrmDictAttr::$BtnExpExcelEnable,  TRUE , "是否可用�?",  TRUE ,  TRUE );
		$map->AddTBString(FrmDictAttr::$BtnGroupLabel, "分析", "分析",  TRUE ,  FALSE , 0, 50, 20);
		$map->AddBoolean(FrmDictAttr::$BtnGroupEnable,  TRUE , "是否可用�?",  TRUE ,  TRUE );
		$map->AddTBString($MapDataAttr->Designer, NULL, "设计�?",  TRUE ,  FALSE , 0, 500, 20);
		$map->AddTBString($MapDataAttr->DesignerContact, NULL, "联系方式",  TRUE ,  FALSE , 0, 500, 20);
		$map->AddTBString($MapDataAttr->DesignerUnit, NULL, "单位",  TRUE ,  FALSE , 0, 500, 20,  TRUE );
		$map->AddTBString($MapDataAttr->GUID, NULL, "GUID",  TRUE ,  TRUE , 0, 128, 20,  FALSE );
		$map->AddTBString($MapDataAttr->Ver, NULL, "版本�?",  TRUE ,  TRUE , 0, 30, 20);
		$map->AddTBStringDoc($MapDataAttr->Note, NULL, "备注",  TRUE ,  FALSE ,  TRUE );
		$map->AddTBInt($MapDataAttr->Idx, 100, "顺序�?",  FALSE ,  FALSE );
		$map->AddTBAtParas(3000);
		$map->AddTBString(FrmDictAttr::$Tag0, NULL, "Tag0",  FALSE ,  FALSE , 0, 500, 20);
		$map->AddTBString(FrmDictAttr::$Tag1, NULL, "Tag1",  FALSE ,  FALSE , 0, 4000, 20);
		$map->AddTBString(FrmDictAttr::$Tag2, NULL, "Tag2",  FALSE ,  FALSE , 0, 500, 20);
		$rm = new RefMethod();
		$rm = new RefMethod();
		$rm->Title = "设计表单";
		$rm->ClassMethodName = ($this . ".DoDesigner");
		$rm->Visable =  TRUE ;
		$rm->refMethodType = $RefMethodType->LinkeWinOpen;
		$rm->Target = "_blank";
		$rm = new RefMethod();
		$rm->Title = "单据url的API";
		$rm->ClassMethodName = ($this . ".DoAPI");
		$rm->Visable =  TRUE ;
		$rm->refMethodType = $RefMethodType->RightFrameOpen;
		$rm->Target = "_blank";
		$map->AddRefMethod($rm);
		$rm = new RefMethod();
		$rm->Title = "打开数据(表格)";
		$rm->ClassMethodName = ($this . ".DoOpenBillDict");
		$rm->Visable =  TRUE ;
		$rm->refMethodType = $RefMethodType->LinkeWinOpen;
		$rm->Target = "_blank";
		$map->AddRefMethod($rm);
		$rm = new RefMethod();
		$rm->Title = "打开数据(行编�?)";
		$rm->ClassMethodName = ($this . ".DoOpenBillEditer");
		$rm->Visable =  TRUE ;
		$rm->refMethodType = $RefMethodType->LinkeWinOpen;
		$rm->Target = "_blank";
		$map->AddRefMethod($rm);
		$rm = new RefMethod();
		$rm->Title = "绑定到菜单目�?";
		$rm->getHisAttrs()->AddDDLSQL("MENUNo", NULL, "选择菜单目录", "SELECT No,Name FROM GPM_Menu WHERE MenuType=3",  TRUE );
		$rm->getHisAttrs()->AddTBString("Name", "@Name", "菜单名称",  TRUE ,  FALSE , 0, 100, 100);
		$rm->ClassMethodName = ($this . ".DoBindMenu");
		$rm->Visable =  TRUE ;
		$rm->refMethodType = $RefMethodType->Func;
		$rm->Target = "_blank";
		$map->AddRefMethod($rm);
		$rm = new RefMethod();
		$rm->Title = "表单事件";
		$rm->ClassMethodName = ($this . ".DoEvent");
		$rm->Icon = "../../WF/Img/Event.png";
		$rm->Visable =  TRUE ;
		$rm->refMethodType = $RefMethodType->RightFrameOpen;
		$rm->Target = "_blank";
		$map->AddRefMethod($rm);
		$rm = new RefMethod();
		$rm->Title = "执行方法";
		$rm->ClassMethodName = ($this . ".DoMethod");
		$rm->Icon = "../../WF/Img/Event.png";
		$rm->Visable =  TRUE ;
		$rm->refMethodType = $RefMethodType->RightFrameOpen;
		$rm->Target = "_blank";
		$map->AddRefMethod($rm);
		$rm = new RefMethod();
		$rm->Title = "创建规则";
		$rm->ClassMethodName = ($this . ".DoCreateRole");
		$rm->Visable =  TRUE ;
		$rm->refMethodType = $RefMethodType->RightFrameOpen;
		$rm->GroupName = "权限规则";
		$map->AddRefMethod($rm);
		$rm = new RefMethod();
		$rm->Title = "编辑规则";
		$rm->ClassMethodName = ($this . ".DoSaveRole");
		$rm->Visable =  TRUE ;
		$rm->refMethodType = $RefMethodType->RightFrameOpen;
		$rm->GroupName = "权限规则";
		$map->AddRefMethod($rm);
		$rm = new RefMethod();
		$rm->Title = "删除规则";
		$rm->ClassMethodName = ($this . ".DoDeleteRole");
		$rm->Visable =  TRUE ;
		$rm->refMethodType = $RefMethodType->RightFrameOpen;
		$rm->GroupName = "权限规则";
		$map->AddRefMethod($rm);
		$rm = new RefMethod();
		$rm->Title = "查询权限";
		$rm->ClassMethodName = ($this . ".DoSearchRole");
		$rm->Visable =  TRUE ;
		$rm->refMethodType = $RefMethodType->RightFrameOpen;
		$rm->GroupName = "权限规则";
		$map->AddRefMethod($rm);
		$rm = new RefMethod();
		$rm->GroupName = "报表定义";
		$rm->Title = "设置显示的列";
		$rm->ClassMethodName = ($this . ".DoRpt_ColsChose");
		$rm->refMethodType = $RefMethodType->RightFrameOpen;
		$rm->Target = "_blank";
		$map->AddRefMethod($rm);
		$rm = new RefMethod();
		$rm->GroupName = "报表定义";
		$rm->Title = "列的顺序";
		$rm->ClassMethodName = ($this . ".DoRpt_ColsIdxAndLabel");
		$rm->refMethodType = $RefMethodType->RightFrameOpen;
		$rm->Target = "_blank";
		$rm = new RefMethod();
		$rm->GroupName = "报表定义";
		$rm->Title = "查询条件";
		$rm->ClassMethodName = ($this . ".DoRpt_SearchCond");
		$rm->refMethodType = $RefMethodType->RightFrameOpen;
		$rm->Target = "_blank";
		$map->AddRefMethod($rm);
		$this->set_enMap($map);
		return $this->get_enMap();
	}
	public function CheckEnityTypeAttrsFor_EntityNoName () 
	{
		$attrs = new MapAttrs($this->getNo());
		if (($attrs->Contains((($this->getNo() . "_") . $GERptAttr->OID)) ==  FALSE ))
		{
			$attr = new MapAttr();
			$attr->setFK_MapData($this->getNo());
			$attr->setKeyOfEn("OID");
			$attr->setName("主键ID");
			$attr->setMyDataType(DataType->AppInt);
			$attr->setUIContralType($UIContralType->TB);
			$attr->setLGType($FieldTypeS->Normal);
			$attr->setUIVisible( FALSE );
			$attr->setUIIsEnable( FALSE );
			$attr->setDefVal("0");
			$attr->setHisEditType($BP->En->EditType->Readonly);
			$attr->Insert();
		}
		if (($attrs->Contains((($this->getNo() . "_") . $GERptAttr->BillNo)) ==  FALSE ))
		{
			$attr = new MapAttr();
			$attr->setFK_MapData($this->getNo());
			$attr->setHisEditType($EditType->UnDel);
			$attr->setKeyOfEn($GERptAttr->BillNo);
			$attr->setName("编号");
			$attr->setMyDataType($DataType->AppString);
			$attr->setUIContralType($UIContralType->TB);
			$attr->setLGType($FieldTypeS->Normal);
			$attr->setUIVisible( TRUE );
			$attr->setUIIsEnable( FALSE );
			$attr->setUIIsLine( FALSE );
			$attr->setMinLen(0);
			$attr->setMaxLen(100);
			$attr->setIdx(-100);
			$attr->Insert();
		}
		if (($attrs->Contains((($this->getNo() . "_") . $GERptAttr->Title)) ==  FALSE ))
		{
			$attr = new MapAttr();
			$attr->setFK_MapData($this->getNo());
			$attr->setHisEditType($EditType->UnDel);
			$attr->setKeyOfEn($GERptAttr->Title);
			$attr->setName("名称");
			$attr->setMyDataType($DataType->AppString);
			$attr->setUIContralType($UIContralType->TB);
			$attr->setLGType($FieldTypeS->Normal);
			$attr->setUIVisible( TRUE );
			$attr->setUIIsEnable( TRUE );
			$attr->setUIIsLine( TRUE );
			$attr->setMinLen(0);
			$attr->setMaxLen(400);
			$attr->setIdx(-90);
			$attr->Insert();
		}
		if (($attrs->Contains(($this->getNo() . "_BillState")) ==  FALSE ))
		{
			$attr = new MapAttr();
			$attr->setFK_MapData($this->getNo());
			$attr->setHisEditType($EditType->UnDel);
			$attr->setKeyOfEn("BillState");
			$attr->setName("单据状�??");
			$attr->setMyDataType($DataType->AppInt);
			$attr->setUIContralType($UIContralType->TB);
			$attr->setLGType($FieldTypeS->Normal);
			$attr->setUIVisible( FALSE );
			$attr->setUIIsEnable( FALSE );
			$attr->setUIIsLine( TRUE );
			$attr->setMinLen(0);
			$attr->setMaxLen(10);
			$attr->setIdx(-98);
			$attr->Insert();
		}
		if (($attrs->Contains(($this->getNo() . "_Starter")) ==  FALSE ))
		{
			$attr = new MapAttr();
			$attr->setFK_MapData($this->getNo());
			$attr->setHisEditType($EditType->UnDel);
			$attr->setKeyOfEn("Starter");
			$attr->setName("创建�?");
			$attr->setMyDataType($DataType->AppString);
			$attr->setUIContralType($UIContralType->TB);
			$attr->setLGType($FieldTypeS->Normal);
			$attr->setUIVisible( FALSE );
			$attr->setUIIsEnable( FALSE );
			$attr->setMinLen(0);
			$attr->setMaxLen(32);
			$attr->setIdx(-1);
			$attr->Insert();
		}
		if (($attrs->Contains(($this->getNo() . "_StarterName")) ==  FALSE ))
		{
			$attr = new MapAttr();
			$attr->setFK_MapData($this->getNo());
			$attr->setHisEditType($EditType->UnDel);
			$attr->setKeyOfEn("StarterName");
			$attr->setName("创建人名�?");
			$attr->setMyDataType($DataType->AppString);
			$attr->setUIContralType($UIContralType->TB);
			$attr->setLGType($FieldTypeS->Normal);
			$attr->setUIVisible( FALSE );
			$attr->setUIIsEnable( FALSE );
			$attr->setMinLen(0);
			$attr->setMaxLen(32);
			$attr->setIdx(-1);
			$attr->Insert();
		}
		if (($attrs->Contains((($this->getNo() . "_") . $GERptAttr->AtPara)) ==  FALSE ))
		{
			$attr = new MapAttr();
			$attr->setFK_MapData($this->getNo());
			$attr->setHisEditType($EditType->UnDel);
			$attr->setKeyOfEn($GERptAttr->AtPara);
			$attr->setName("参数");
			$attr->setMyDataType($DataType->AppString);
			$attr->setUIContralType($UIContralType->TB);
			$attr->setLGType($FieldTypeS->Normal);
			$attr->setUIVisible( FALSE );
			$attr->setUIIsEnable( FALSE );
			$attr->setUIIsLine( FALSE );
			$attr->setMinLen(0);
			$attr->setMaxLen(4000);
			$attr->setIdx(-99);
			$attr->Insert();
		}
		if (($attrs->Contains(($this->getNo() . "_RDT")) ==  FALSE ))
		{
			$attr = new MapAttr();
			$attr->setFK_MapData($this->getNo());
			$attr->setHisEditType($EditType->UnDel);
			$attr->setKeyOfEn("RDT");
			$attr->setName("创建时间");
			$attr->setMyDataType($DataType->AppDateTime);
			$attr->setUIContralType($UIContralType->TB);
			$attr->setLGType($FieldTypeS->Normal);
			$attr->setUIVisible( FALSE );
			$attr->setUIIsEnable( FALSE );
			$attr->setUIIsLine( FALSE );
			$attr->setIdx(-97);
			$attr->Insert();
		}
		$sf = new SFTable();
		$sf->setNo($this->getNo());
		if (($sf->RetrieveFromDBSources() == 0))
		{
			$sf->setName($this->getName());
			$sf->setSrcType($SrcType->SQL);
			$sf->setSrcTable($this->getPTable());
			$sf->setColumnValue("BillNo");
			$sf->setColumnText("Title");
			$sf->setSelectStatement(("SELECT BillNo AS No, Title as Name FROM " . $this->getPTable()));
			$sf->Insert();
		}
	}
	public function DoRpt_ColsChose () 
	{
		return ("../../CCBill/Admin/ColsChose.htm?FrmID=" . $this->getNo());
	}
	public function DoRpt_ColsIdxAndLabel () 
	{
		return ("../../CCBill/Admin/ColsIdxAndLabel.htm?FrmID=" . $this->getNo());
	}
	public function DoRpt_SearchCond () 
	{
		return ("../../CCBill/Admin/SearchCond.htm?FrmID=" . $this->getNo());
	}
	public function DoSaveRole () 
	{
		return (("../../CCBill/Admin/CreateRole.htm?s=34&FrmID= " . $this->getNo()) . " &ExtType=PageLoadFull&RefNo=");
	}
	public function DoCreateRole () 
	{
		return (("../../CCBill/Admin/CreateRole.htm?s=34&FrmID= " . $this->getNo()) . " &ExtType=PageLoadFull&RefNo=");
	}
	public function DoSearchRole () 
	{
		return (("../../CCBill/Admin/SearchRole.htm?s=34&FrmID= " . $this->getNo()) . " &ExtType=PageLoadFull&RefNo=");
	}
	public function DoDeleteRole () 
	{
		return (("../../CCBill/Admin/DeleteRole.htm?s=34&FrmID= " . $this->getNo()) . " &ExtType=PageLoadFull&RefNo=");
	}
	public function DoMethod () 
	{
		return (("../../CCBill/Admin/Method.htm?s=34&FrmID= " . $this->getNo()) . " &ExtType=PageLoadFull&RefNo=");
	}
	public function DoPageLoadFull () 
	{
		return (("../../Admin/FoolFormDesigner/MapExt/PageLoadFull.htm?s=34&FK_MapData= " . $this->getNo()) . " &ExtType=PageLoadFull&RefNo=");
	}
	public function DoEvent () 
	{
		return (("../../Admin/CCFormDesigner/Action.htm?FK_MapData= " . $this->getNo()) . " &T=sd&FK_Node=0");
	}
	public function DoBindMenu ($menumDirNo, $menuName) // [String menumDirNo, String menuName]
	{
		$sql = (("SELECT FK_App FROM GPM_Menu WHERE No='" . $menumDirNo) . "'");
		$app = DBAccess->RunSQLReturnString($sql);
		$guid = DBAccess->GenerGUID();
		$url = ("../WF/CCBill/Search.htm?FrmID=" . $this->getNo());
		$sql = (((((((((("INSERT INTO GPM_Menu (No, Name, ParentNo, Idx, MenuType, FK_App, Url, OpenWay,Icon,MenuCtrlWay) VALUES ('" . $guid) . "', '") . $menuName) . "', '") . $menumDirNo) . "', 1, 4, '") . $app) . "', '") . $url) . "',  0,'',1)");
		DBAccess::RunSQL($sql);
		return (("加入成功,如何<a href='En.htm?EnName=BP.GPM.Menu&No=" . $guid) . "'>控制权限请转GPM.</a>");
	}
	public function CreateBlankWorkID () 
	{
		return $String->valueOf($BP->Frm->Dev2Interface->CreateBlankDictID($this->getNo(), $WebUser->getNo(), NULL));
	}
	public function DoOpenBillDict () 
	{
		return ((("../../CCBill/SearchDict.htm?FrmID= " . $this->getNo()) . " &t=") . new Date()->getTime());
	}
	public function DoOpenBillEditer () 
	{
		return ((("../../CCBill/SearchEditer.htm?FrmID= " . $this->getNo()) . " &t=") . new Date()->getTime());
	}
	public function DoAPI () 
	{
		return ((("../../Admin/FoolFormDesigner/Bill/API.htm?FrmID= " . $this->getNo()) . " &t=") . new Date()->getTime());
	}
}
?>
